﻿/***************************************************************************
*		功能：     车辆/设备信息实体类(代码生成工具搞定的)
*		作者：     Hydra
*		日期：     2011-08-11 05:47
*		
*		修改日期：
*		修改人：
*		修改内容：
/* *************************************************************************/
using System;
using System.Xml.Serialization;
using System.Runtime.Serialization;
using System.IO;
using System.Text;
using System.Data;
using Deeper.DataAccess;
using Deeper.Common;
using Deeper.Common.Web;
using System.Collections.Generic;
namespace ZhongTian.Model
{
	/// <summary>
	/// 车辆/设备信息
	/// </summary>
	[Serializable]
	[HTable(TableName = "T_Device", EntityName = "Device")]
	public partial class Device :  IModel
	{
        /// <summary>
        /// 是否新参数
        /// </summary>
        public bool IsNewModel() { return DeviceId == 0; }

	    #region 所有的字段
	 
	    
		/// <summary>
		/// DeviceId
		/// </summary>
		[HColumn("DeviceId", Remake = "DeviceId", DataType = "numeric" , IsPrimary = true , IsIdentity = true , IsUniqueness = true)]
		public int DeviceId { set; get; }
        

		/// <summary>
		/// 类型
		/// </summary>
		[HColumn("Type", Remake = "类型", DataType = "int")]
		public int Type { set; get; }
        

		/// <summary>
		/// 名称
		/// </summary>
		[HColumn("Name", Remake = "名称", DataType = "nvarchar" , Length =50)]
		public string Name { set; get; }
        

		/// <summary>
		/// 车牌号码/序列号
		/// </summary>
		[HColumn("SN", Remake = "车牌号码/序列号", DataType = "nvarchar" , Length =50 , IsNullable = true)]
		public string SN { set; get; }
        

		/// <summary>
		/// 购买时间
		/// </summary>
		[HColumn("BuyTime", Remake = "购买时间", DataType = "datetime")]
		public DateTime BuyTime { set; get; }
        

		/// <summary>
		/// 最后保养/维护时间
		/// </summary>
		[HColumn("LastMaintainTime", Remake = "最后保养/维护时间", DataType = "datetime")]
		public DateTime LastMaintainTime { set; get; }
        

		/// <summary>
		/// 备注
		/// </summary>
		[HColumn("Memo", Remake = "备注", DataType = "text" , IsNullable = true)]
		public string Memo { set; get; }
        



        public class F
        {
    		 
			 /// <summary>
			 /// DeviceId
			 /// </summary>
			 public static Field DeviceId = new Field("T_Device","DeviceId");
	    	 

			 /// <summary>
			 /// 类型
			 /// </summary>
			 public static Field Type = new Field("T_Device","Type");
	    	 

			 /// <summary>
			 /// 名称
			 /// </summary>
			 public static Field Name = new Field("T_Device","Name");
	    	 

			 /// <summary>
			 /// 车牌号码/序列号
			 /// </summary>
			 public static Field SN = new Field("T_Device","SN");
	    	 

			 /// <summary>
			 /// 购买时间
			 /// </summary>
			 public static Field BuyTime = new Field("T_Device","BuyTime");
	    	 

			 /// <summary>
			 /// 最后保养/维护时间
			 /// </summary>
			 public static Field LastMaintainTime = new Field("T_Device","LastMaintainTime");
	    	 

			 /// <summary>
			 /// 备注
			 /// </summary>
			 public static Field Memo = new Field("T_Device","Memo");
	    	 

        }
        #endregion
		  
	 
	}
    
}